환불 확인 코드 보내기
POST
/v1/external/blocked-transactions/{id}/refund/send-code
서버
지갑 이메일로 일회용 코드를 보냅니다. 이 코드는 입금 발신자가 아닌 주소로 차단된 거래를 환불하는 것을 확인합니다. 환불을 만들 때 전달하세요. 코드는 1분에 한 번 다시 보낼 수 있습니다
권한 부여
XApiKey
유형API Key (header: X-Api-Key)
파라미터
경로 파라미터
id*
Blocked transaction ID
유형string
필수요청 본문
JSON
{
"destination_address": "string"
}
응답들
OK
application/json
JSON
{
"code": 0,
"data": "string",
"message": "string"
}
POST
/v1/external/blocked-transactions/{id}/refund/send-code
서버
Server
샘플
cURL
curl -X POST \
'https://demo.dv.net/api/v1/external/blocked-transactions/{id}/refund/send-code' \
-H "Content-Type: application/json"JavaScript
fetch('https://demo.dv.net/api/v1/external/blocked-transactions/{id}/refund/send-code', {method:'POST',headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));PHP
<?php
$url = 'https://demo.dv.net/api/v1/external/blocked-transactions/{id}/refund/send-code';
$method = 'POST';
$headers = [
'Content-Type' => 'application/json',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>Python
import requests
url = 'https://demo.dv.net/api/v1/external/blocked-transactions/{id}/refund/send-code'
headers = {
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())